package com.neu.smty.mapper;

import java.util.List;
import com.neu.smty.domain.Appointment;

/**
 * 预约Mapper接口
 *
 * @author liningning
 * @date 2025-10-09
 */
public interface AppointmentMapper
{
    /**
     * 查询预约
     *
     * @param appointmentId 预约ID
     * @return 预约
     */
    public Appointment selectAppointmentById(Long appointmentId);

    /**
     * 查询预约列表
     *
     * @param appointment 预约
     * @return 预约集合
     */
    public List<Appointment> selectAppointmentList(Appointment appointment);

    /**
     * 新增预约
     *
     * @param appointment 预约
     * @return 结果
     */
    public int insertAppointment(Appointment appointment);

    /**
     * 修改预约
     *
     * @param appointment 预约
     * @return 结果
     */
    public int updateAppointment(Appointment appointment);

    /**
     * 删除预约
     *
     * @param appointmentId 预约ID
     * @return 结果
     */
    public int deleteAppointmentById(Long appointmentId);

    /**
     * 批量删除预约
     *
     * @param appointmentIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteAppointmentByIds(Long[] appointmentIds);
}
